package com.xw.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Description:     点赞/收藏模块(Thumbs)表实体类
 * @Author: ASUS
 * @Date: 2024/12/19 9:17
 * @Version: 1.0
 */


@Data
public class Thumbs implements Serializable {
    private static final long serialVersionUID = 151626055340927979L;
    private Integer id;
    @ApiModelProperty(value = "0 帖子点赞  1 评论点赞  2 帖子收藏")
    @NotNull(message = "类型不能为空")
    private Integer type;
    @ApiModelProperty(value = "点赞/收藏 的对象ID")
    @NotNull(message = "linkId不能为空")
    private Integer linkId;
    @ApiModelProperty(value = "点赞/收藏的对象内容/标题")
    private String title;
    @ApiModelProperty(value = "点赞/收藏人ID")
    private Integer userId;
}

